home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Turnbull China Bikeride
/
Turnbull China Bikeride - Disc 1.iso
/
ARGONET
/
PD
/
MATHS
/
RLAB
/
RLAB125.ZIP
/
!RLaB
/
toolbox
/
flipud
< prev
next >
Wrap
Text File
|
1994-02-21
|
439b
|
24 lines
//-------------------------------------------------------------------//
// Syntax: flipud ( A )
// Description:
// flipud flips all the elements of a vector (or matrix) from top to
// bottom.
//-------------------------------------------------------------------//
flipud = function ( A )
{
local (B);
if (class (A) != "num")
{
error("flipud: Only matrix arguments supported");
}
B = A[A.nr:1:-1;];
return B;
};